From 507e75b58da3a8b57ccba65514979aaac81c230e Mon Sep 17 00:00:00 2001 From: "cl349@freefall.cl.cam.ac.uk" Date: Thu, 21 Oct 2004 15:14:17 +0000 Subject: [PATCH] bitkeeper revision 1.1159.122.2 (4177d249OfMUUU4w3P-8H14U7koYXQ) Remove netbsd domain builder. --- tools/python/xen/xend/XendDomainInfo.py | 26 ------------------------- 1 file changed, 26 deletions(-) diff --git a/tools/python/xen/xend/XendDomainInfo.py b/tools/python/xen/xend/XendDomainInfo.py index b8aba6bb99..c6452162a6 100644 --- a/tools/python/xen/xend/XendDomainInfo.py +++ b/tools/python/xen/xend/XendDomainInfo.py @@ -1020,31 +1020,6 @@ def vm_image_linux(vm, image): vm.create_domain("linux", kernel, ramdisk, cmdline) return vm -def vm_image_netbsd(vm, image): - """Create a VM for a bsd image. - - @param name: vm name - @param memory: vm memory - @param image: image config - @return: vm - """ - #todo: Same as for linux. Is that right? If so can unify them. - kernel = sxp.child_value(image, "kernel") - cmdline = "" - ip = sxp.child_value(image, "ip", "dhcp") - if ip: - cmdline += "ip=" + ip - root = sxp.child_value(image, "root") - if root: - cmdline += "root=" + root - args = sxp.child_value(image, "args") - if args: - cmdline += " " + args - ramdisk = sxp.child_value(image, "ramdisk", '') - vm.create_domain("netbsd", kernel, ramdisk, cmdline) - return vm - - def vm_dev_vif(vm, val, index, change=0): """Create a virtual network interface (vif). @@ -1168,7 +1143,6 @@ def vm_field_maxmem(vm, config, val, index): # Register image handlers. add_image_handler('linux', vm_image_linux) -add_image_handler('netbsd', vm_image_netbsd) # Register device handlers. add_device_handler('vif', vm_dev_vif) -- 2.30.2